from pandas import read_csv
import plotly.graph_objects as go
import numpy as np


filename = "E:\\JAVA\\Java+ML\\3w_dataset-master\\FinalData.csv"
dataz = read_csv(filename)
x = dataz['PCA_X']
y = dataz['PCA_Y']
z = dataz['PRE_CLASS']
print(dataz)

fig = go.Figure(data=[go.Scatter3d(
    x=x,  # 设置3个不同的坐标数据
    y=y,
    z=z,
    mode='markers')])  # 'lines', 'markers', 'text'  3种情况的组合

fig.show()